<template>
  <el-container class="roleContainer">
    <el-header>
      <ContentHeader
        @changeCollapse="changeCollapse"
        :isCollapse="isCollapse"
      />
    </el-header>

    <!-- 页面主体区 -->
    <el-container>
      <!-- 侧边栏 -->
      <Aside :isCollapse="isCollapse"></Aside>

      <!-- 右侧内容主体 -->
      <el-main :class="{ activeMain: isCollapse }">
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Aside from '@/views/Layout/asideRole/defenseSecretary.vue';

export default {
  name: 'regProfessionDefenseSecretary',
  data() {
    return {
      isCollapse: false,
    };
  },

  components: {
    Aside,
  },

  methods: {
    // 伸缩侧边栏
    changeCollapse() {
      this.isCollapse = !this.isCollapse;
    },
  },
};
</script>
